<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="">
      <div class="table_list">
         <table  width="100%" class="table table_from table-bordered">
          <tbody>
           <tr>
              <th width="160">类型</th>
              <td>
              {$type_name}
              </td>
            </tr>
            <tr>
              <th width="80">名称</th>
              <td>
              	<input type="text" style="width:400px;" name="title" id="title" value="{$data.title}" />
              	
              </td>
            </tr>
            
             <tr>
              <td>备注:</td>
              <td><textarea name="desc" rows="2" style="width:200px" >{$data.desc}</textarea></td>
            </tr>
                
                <tr>
              <td>内容:</td>
              <td><textarea name="content" rows="5"  style="width:400px">{$data.content}</textarea></td>
            </tr>
                
        
          </tbody>
        </table>
      </div>
      <input type="hidden"  name="catid" value="{$catid}">
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  /></if>
      <div class="form-actions">
      <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>添加</if></button>
      		 <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
      </div>
    </form>
</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script> 

</block>